package com.chen.netty.sixexample;

import com.chen.protobuf.DataInfo;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

public class ProtobufServerHandler extends SimpleChannelInboundHandler<DataInfo.Student> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, DataInfo.Student msg) {
        System.out.println(msg.getAge());
        System.out.println(msg.getAddress());
        System.out.println(msg.getName());
    }
}